﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OutManageEdit.aspx.cs" Inherits="Comod_StorageAdd" %>

<html>
<head>
<title>商品入库</title>
<link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/rl.js"></script>
<script type="text/javascript" src="../js/submit.js"></script>
<script type="text/javascript" src="../js/Check.js"></script>
<link href="../js/loading.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
function account()
{
    var sl=document.getElementById("OutNum").value;//数量
    var dj=document.getElementById("Prices").value;//应收单价
    var sumPrice=0;//合计

    if(sl!=""&&dj!=""&&!isNaN(sl)&&!isNaN(dj))
    {
        sumPrice=parseFloat(sl)*parseFloat(dj);
        document.getElementById("TotalMoney").value=sumPrice.toFixed(2);
    }
}
function check(id)
{
    if(parseFloat(document.getElementById("OutNum").value) <= 0)
    {
        alert('数量不能小于0！')
        return false;
    }
 }
</script>
</head>
<script type="text/javascript" src="../js/loading.js" charset="gb2312"></script>
<body >
    <form id="form1" runat="server" >
        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0"  >
            <tr>
                <td width="2%" height="22" >
                    <img src="../images/module.gif"  height="22"/></td>
                <td width="85%" >
              <asp:Label ID="lblPatd" runat="server"></asp:Label></td>
                <td width="13%" align="right" >
                    <font color="red"> [ <a href="javascript:location.href=document.referrer;" ><font color="red">返回</font></a> ]</font>                </td>
            </tr>
      </table>
        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" >
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
      </table>
        <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1" class="tabGg" >
            <tr>
                <td colspan="4" align="center" bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="center" class="F_B font14">备件出库</td>
                  </tr>
                </table>                </td>
            </tr>
            
            <tr>
                <td width="12%" bgcolor="#FFFFFF" class="r_bg" >编号条码：</td>
              <td width="38%" bgcolor="#FFFFFF" class="right_bg"  >
                  <asp:Label ID="ComodBarcode" runat="server" Text=""></asp:Label></td>
                    <td width="12%" bgcolor="#FFFFFF" class="r_bg" >出库单号：</td>
                <td width="38%" bgcolor="#FFFFFF" class="right_bg"  >
                    <asp:Label ID="OutCode" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg">商品大类：</td>
              <td bgcolor="#FFFFFF" class="right_bg F_red"><span class="right_bg">
                  <asp:Label ID="TypeName" runat="server" Text=""></asp:Label>
              </span></td>
                <td bgcolor="#FFFFFF" class="r_bg">配件名称：</td>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:Label ID="catalogueName" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg">
                    单位：</td>
                <td bgcolor="#FFFFFF" class="right_bg">
                    <asp:Label ID="Units" runat="server" Text=""></asp:Label></td>
                <td bgcolor="#FFFFFF" class="r_bg">成交单价：</td>
                <td bgcolor="#FFFFFF" class="right_bg"><input name="Prices" type="text" style="width: 50px;" value="0" class="input1" id="Prices"   onfocus="if(this.value==0)this.value=''" onBlur="if(this.value=='')this.value=0"    onkeyup="value=value.replace(/[^\d]/g,'');account()"  runat="server" /> 
                  元</td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg" >数 &nbsp; 量：</td>
                <td bgcolor="#FFFFFF" class="right_bg"  ><input name="text" type="text" class="input1"  id="OutNum" style="width: 50px"  value="0" runat="server"  onkeyup="account()"  /></td>
                <td bgcolor="#FFFFFF" class="r_bg"  >成交合计：</td>
                <td bgcolor="#FFFFFF" class="right_bg"  ><input name="TotalMoney" type="text" style="width: 50px;" class="input1" id="TotalMoney"  runat="server"   readonly="readOnly"/>
                  元</td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg" >备注说明：</td>
                <td colspan="3" bgcolor="#FFFFFF" class="right_bg" >
                    <asp:TextBox ID="Remark" runat="server"  Columns="40" Rows="4" TextMode="MultiLine"></asp:TextBox></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg" >操作人员：</td>
                <td bgcolor="#FFFFFF" class="right_bg" >
                    <asp:Label ID="lblUser" runat="server"></asp:Label></td>
                <td bgcolor="#FFFFFF" class="r_bg" >操作时间：</td>
                <td bgcolor="#FFFFFF" class="right_bg"><asp:Label CssClass="right_bg" ID="lblTime" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="r_bg" >                
                    <asp:HiddenField ID="hidModuid" runat="server"/>
                    <asp:HiddenField ID="HidGoUrl" runat="server" />
                </td>
                <td colspan="3" bgcolor="#FFFFFF" class="right_bg" >
                    &nbsp;<asp:Button ID="btnAdd" CssClass="submit" runat="server" Text=" 提交 "  OnClick="btnAdd_Click"  OnClientClick="return check(this.form)"/>                </td>
            </tr>
      </table>
    </form>
</body>
</html>
